<template>
  <el-container>
    <el-aside>
      <div style="margin: 20px 0">
        <span >日志管理系统</span>
      </div>
      <el-menu
          router="true"
          default-active="2"
          class="el-menu-vertical-demo">
        <el-menu-item index="1" route="/home/logInfo">
          <el-icon :size="20">
            <edit />
          </el-icon>
          <span>日志操作</span>
        </el-menu-item>
        <el-menu-item index="2" route="/home/dashboard">
          <el-icon><data-board /></el-icon>
          <span>日志大屏</span>
        </el-menu-item>
      </el-menu>
    </el-aside>
    <el-container style="height: 100vh">
      <el-header>
        <div class="title"><div>Hearder</div></div>
      </el-header>
      <el-main>
        <router-view/>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
export default {
  name: "home",
  mounted() {
    this.$router.push("/home/dashboard")
  }
}
</script>

<style scoped>
.el-aside{
  height: 100vh;
  width: 200px;
}
.el-header{
  height: 60px;
  border-bottom: lightgray solid 0.5px;
}
</style>